package com.dianshang.rabbitmq;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.io.IOException;

/**
 * 消息消费者测试
 */
// 注解形式：读取XML文件
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext-consumer.xml")
public class ConsumerTest {

    @Test
    public void getMsg() throws IOException {
        System.in.read();
    }

}